package com.stormrage.entity.edu.rep;

import java.io.Serializable;
import java.util.List;

public class EduChapterRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 6791128721705076628L;

	// ------------------------------- Fields -------------------------------

	private Integer seq;

	private Integer id;

	private String chapter;

	private List<EduVideoRep> video;

	// ------------------------------- Fields -------------------------------

	public EduChapterRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getChapter() {
		return chapter;
	}

	public void setChapter(String chapter) {
		this.chapter = chapter;
	}

	public List<EduVideoRep> getVideo() {
		return video;
	}

	public void setVideo(List<EduVideoRep> video) {
		this.video = video;
	}

	// ------------------------------- Fields -------------------------------

	public static EduChapterRep instance(EduChapterRep entity, Integer seq, List<EduVideoRep> video) {
		entity.setSeq(seq);
		entity.setVideo(video);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : seq - " + seq + " id - " + id + " chapter - " + chapter + " video - " + video;
	}

}
